from pynput import keyboard


def on_press(key):
    str1 = 'Key.space'
    if str(key) == str1:
        return 0


if __name__ == "__main__":
    with keyboard.Listener(on_press=on_press, on_release=on_press) as lsn:
        lsn.join()
    print('12')

